package cst.a706gdy.zyfypt_706gdy.service;



import java.util.List;

import cst.a706gdy.zyfypt_706gdy.bean.ArticleBean;
import cst.a706gdy.zyfypt_706gdy.bean.Loginbean;
import cst.a706gdy.zyfypt_706gdy.bean.ProjectBean;
import cst.a706gdy.zyfypt_706gdy.bean.SVideoBean;
import cst.a706gdy.zyfypt_706gdy.bean.TcaseBean;
import cst.a706gdy.zyfypt_706gdy.bean.VideoBean;
import cst.a706gdy.zyfypt_706gdy.bean.twareBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by DELL on 2017/5/10.
 */

public interface ResService {
    @GET("api.php/login")
    Call<Loginbean> login(@Query("username") String username,
                          @Query("password") String password);
    @GET("api.php/lists/mod/{mod}")
  Call<List<VideoBean>>getVideoList(@Path("mod")String mod,
                                    @Query("page")int page,
                                    @Query("SessionID")String SessionID);
    @GET("api.php/reg")
    Call<String> reg(@Query("username") String username,
                        @Query("realname")String realname,
                        @Query("roleid")int roleid,
                        @Query("password") String password,
                        @Query("re_password")String re_password,
                        @Query("tel") String tel,
                        @Query("email")String email


    );
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>>getArticleList(@Path("mod")String mod,
                                        @Query("page")int page,
                                        @Query("SessionID")String SessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<twareBean>>gettwareList(@Path("mod")String mod,
                                    @Query("page")int page,
                                    @Query("SessionID")String SessionID);
    @GET("api.php/listspecial/mod/{mod}")
    Call<List<SVideoBean>> getSVideoList(@Path("mod")String mod,
                                         @Query("page") int page,
                                         @Header("SessionID") String sessionID);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>> getTcaseList(@Path("mod")String mod,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ProjectBean>> getPorjectList(@Path("mod")String mod,
                                           @Query("page") int page,
                                           @Header("SessionID") String sessionID);




    /*
    getDetail();*/
}
